package cn.wolfcode.shop.web.util;

import cn.wolfcode.shop.domain.User;

public class UserContext {
    public static ThreadLocal<User> local = new ThreadLocal<User>();
    public static void set(User user){
        local.set(user);
    }
    public static User get(){
        return local.get();
    }
    public static void remove(){
        local.remove();
    }
}
